function messagePost(){
	
	$.post('/MessagePost', function(data) {
		 alert(data);
		});
}
function editMainPic(){
	  $("#editMainPicForm").submit(function(event) {

	    /* stop form from submitting normally */
	    event.preventDefault(); 
	        
	    /* get some values from elements on the page: */
	    var $form = $( this ),
	    albumIdR = $form.find( 'input[name="albumId"]' ).val(),
	    picNameR = $form.find( 'input[name="picName"]' ).val(),
	    fileforloadR = $form.find( 'input[name="fileforload"]' ).val(),
	    url = $form.attr( 'action' );

	    /* Send the data using post  */
	    $.post( "./PortraitUpload", {albumId:albumIdR,picName:picNameR,fileforload:fileforloadR}
	    );
	  });
	  
	  return false;
}